//Variables
$primary-color = #35cebe
$primary-color-hover = #25beae
$dark-gray = #333
$medium-gray = #888
$light-gray = #f9f9f9
$custom-font = 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif

//General Styles
body {
	height: 100%;
	width: 100%;
	overflow-x: hidden;
	font-size: 1.6em;
	font-family: $custom-font;
	color: $dark-gray;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
	letter-spacing: -.1rem;
	margin-bottom: 2.0rem;
	margin-top: 0;
}

h1 {
	font-size: 2.5em;
}

h2 {
	font-size: 1.8em;
}

h3 {
	font-size: 1.6em;
}

h4 {
	font-size: 1.4em;
}

h5, h6 {
	color: #555;
	text-transform: uppercase;
	font-size: 0.9em;
	letter-spacing: .05em;
	font-weight: 600;
	margin-bottom: 1rem;
}

h6 {
	color: $medium-gray;
	font-size: 0.8em;
}

p.text-large {
	font-size: 1.5em;
}

p.text-small {
	font-size: 0.75em;
}

.text-uppercase {
	text-transform: uppercase;
}

.text-left {
	text-align: left;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

a {
	color: $primary-color;
}

a:focus, a:hover {
	color: $primary-color-hover;
}

.text-muted {
	color: $medium-gray;
}

hr {
	border: 0;
	border-top: 0.1rem solid #f4f5f6;
	margin: 3.0rem 0;
}

.circle {
	border-radius: 499rem;
}

td, th {
	border-bottom: 0.1rem solid #eee;
}

/*For demo purposes only*/

a.anchor {
	display: block;
	position: relative;
	top: -140px;
	visibility: hidden;
}

.grid-example {
	margin-left: 1rem;
	margin-right: 1rem;
	.column {
		background: #ddd;
		text-align: center;
		padding-top: 15px;
		padding-bottom: 15px;
		margin-bottom: 10px;
	}
}

.credit {
	text-align: center;
	margin-top: 30px;
	color: #666;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
}

/*Margins*/

.m-0 {
	margin: 0;
}

.mt-1 {
	margin-top: 1rem;
}

.mr-1 {
	margin-right: 1rem;
}

.mb-1 {
	margin-bottom: 1rem;
}

.ml-1 {
	margin-left: 1rem;
}

.mt-2 {
	margin-top: 2rem;
}

.mr-2 {
	margin-right: 2rem;
}

.mb-2 {
	margin-bottom: 2rem;
}

.ml-2 {
	margin-left: 2rem;
}

.mt-3 {
	margin-top: 3rem;
}

.mr-3 {
	margin-right: 3rem;
}

.mb-3 {
	margin-bottom: 3rem;
}

.ml-3 {
	margin-left: 3rem;
}

/*Forms Elements & Buttons*/

input[type='email'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='text'], input[type='url'], textarea, select {
	border: 1px solid $light-gray!important;
}

input[type='email']:focus, input[type='number']:focus, input[type='password']:focus, input[type='search']:focus, input[type='tel']:focus, input[type='text']:focus, input[type='url']:focus, textarea:focus, select:focus {
	border: 1px solid $primary-color!important;
}

.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
	background-color: $primary-color;
	border: 0.1rem solid $primary-color;
	border-radius: 499rem;
	font-size: 1.15rem;
}

.button:focus, .button:hover, button:focus, button:hover, input[type='button']:focus, input[type='button']:hover, input[type='reset']:focus, input[type='reset']:hover, input[type='submit']:focus, input[type='submit']:hover {
	background-color: $dark-gray;
	border-color: $dark-gray;
	color: #fff;
	outline: 0;
}

.button[disabled], button[disabled], input[type='button'][disabled], input[type='reset'][disabled], input[type='submit'][disabled] {
	cursor: default;
	opacity: .5;
}

.button[disabled]:focus, .button[disabled]:hover, button[disabled]:focus, button[disabled]:hover, input[type='button'][disabled]:focus, input[type='button'][disabled]:hover, input[type='reset'][disabled]:focus, input[type='reset'][disabled]:hover, input[type='submit'][disabled]:focus, input[type='submit'][disabled]:hover {
	background-color: $primary-color;
	border-color: $primary-color;
}

.button.button-outline, button.button-outline, input[type='button'].button-outline, input[type='reset'].button-outline, input[type='submit'].button-outline {
	background-color: transparent;
	color: $primary-color;
}

.button.button-outline:focus, .button.button-outline:hover, button.button-outline:focus, button.button-outline:hover, input[type='button'].button-outline:focus, input[type='button'].button-outline:hover, input[type='reset'].button-outline:focus, input[type='reset'].button-outline:hover, input[type='submit'].button-outline:focus, input[type='submit'].button-outline:hover {
	background-color: transparent;
	border-color: $dark-gray;
	color: $dark-gray;
}

.button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover, button.button-outline[disabled]:focus, button.button-outline[disabled]:hover, input[type='button'].button-outline[disabled]:focus, input[type='button'].button-outline[disabled]:hover, input[type='reset'].button-outline[disabled]:focus, input[type='reset'].button-outline[disabled]:hover, input[type='submit'].button-outline[disabled]:focus, input[type='submit'].button-outline[disabled]:hover {
	border-color: inherit;
	color: $primary-color;
}

.button.button-clear, button.button-clear, input[type='button'].button-clear, input[type='reset'].button-clear, input[type='submit'].button-clear {
	background-color: transparent;
	border-color: transparent;
	color: $primary-color;
}

.button.button-clear:focus, .button.button-clear:hover, button.button-clear:focus, button.button-clear:hover, input[type='button'].button-clear:focus, input[type='button'].button-clear:hover, input[type='reset'].button-clear:focus, input[type='reset'].button-clear:hover, input[type='submit'].button-clear:focus, input[type='submit'].button-clear:hover {
	background-color: transparent;
	border-color: transparent;
	color: $dark-gray;
}

.button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover, button.button-clear[disabled]:focus, button.button-clear[disabled]:hover, input[type='button'].button-clear[disabled]:focus, input[type='button'].button-clear[disabled]:hover, input[type='reset'].button-clear[disabled]:focus, input[type='reset'].button-clear[disabled]:hover, input[type='submit'].button-clear[disabled]:focus, input[type='submit'].button-clear[disabled]:hover {
	color: $primary-color;
}

input[type='email'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='text'], input[type='url'], textarea, select {
	border: 0.1rem solid #eee!important;
	border-radius: .4rem;
	box-shadow: none;
}

input[type='email'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='text'], input[type='url'], select {
	max-width: 60rem;
}

input[type='email']:focus, input[type='number']:focus, input[type='password']:focus, input[type='search']:focus, input[type='tel']:focus, input[type='text']:focus, input[type='url']:focus, textarea:focus, select:focus {
	border-color: $primary-color;
	outline: 0;
}

select {
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="#eeeeee" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>') center right no-repeat;
	padding-right: 3.0rem;
}

select:focus {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="#f02563" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>');
}

//Layout
.navbar {
	position: fixed;
	z-index: 1;
	width: 100%;
	background: #fff;
	height: 80px;
	padding: 20px 0;
	box-shadow: 0px 3px 8px rgba(0, 0, 0, .05);
	a.site-title {
		color: #222;
		color: $primary-color;
		font-size: 2.3rem;
		font-weight: bold;
		display: block;
		margin: 0 20px 10px 20px;
    padding-left: 15px
	}
	
	.col-search {
		position: relative;
		.search-btn {
			font-size: 22px;
			color: $medium-gray;
			position: absolute;
			top: 6px;
			right: 42px;
		}
		
		.search-btn:hover {
			color: $dark-gray;
		}
	}
	
	input[type=text] {
		margin-top: -.6rem;
		margin-left: -1rem;
		padding-left: 2rem;
		background: $light-gray;
		border-radius: 499rem;
		border: none;
		height: 50px;
	}
}

#sidebar {
	position: fixed;
	z-index: 0;
	width: 20%!important;
	background: #fff;
	padding: 10px 30px!important;
	box-shadow: 3px 0px 8px rgba(0, 0, 0, .05);
	margin-top: 80px;
	height: 100%;
	h1, h2, h3, h4, h5, h6 {
		color: $dark-gray;
		margin-top: 20px;
		margin-bottom: 0;
	}
	
	ul {
		margin-top: 10px;
		margin-left: -20px;
		margin-right: -30px;
		li {
			list-style: none;
			margin: 0;
			padding: 0;
			a {
				display: block;
				padding: 10px 20px;
				color: $medium-gray;
				.fa {
					margin-right: 5px;
				}
			}
			
			a:hover {
				color: $primary-color;
				background-color: $light-gray;
			}
		}
	}
}

#main-content {
	width: 80%!important;
	padding: 20px 3.5rem!important;
	margin-top: 95px;
	margin-right: 12px;
	.page-heading {
		margin-bottom: 20px;
	}
}

.card {
	background: #fff;
	box-shadow: 0px 0px 25px rgba(0, 0, 0, .05);
	margin-bottom: 2.2rem;
	.canvas-wrapper {
		width: 98%;
	}
	
	.card-title {
		border-bottom: 1px solid #eee;
		padding: 15px 20px;
		h1, h2, h3, h4, h5, h6 {
			margin: 0;
			padding: 0;
		}
		
		.badge {
			margin-top: 3px;
		}
	}
	
	.card-block {
		padding: 10px 20px;
	}
}

.large-card {
	background: #fff;
	padding: 0;
	box-shadow: 0px 0px 25px rgba(0, 0, 0, .05);
	margin-bottom: 2.2rem;
}

.user-section {
	a {
		float: right;
	}
	margin-top: -8px;
	margin-right: 40px;
	img {
		margin-right: 10px;
		float: left;
	}
	
	.username {
		color: $dark-gray;
		float: right;
		text-align: left;
		h4 {
			margin-bottom: -.5rem;
		}
		
		p {
			color: $medium-gray;
			font-size: .9em;
		}
	}
}

//Alerts & Badges

.alert {
	padding: 10px 20px;
	border-radius: .5rem;
	margin-bottom: 20px;
	color: #fff;
	background-color: $medium-gray;
	.fa {
		margin-right: 5px;
	}
}

.badge {
	padding: 5px 10px;
	border-radius: 499px;
	color: #fff;
	font-size: .8em;
	height: 28px;
	min-width: 28px;
	text-align: center;
	background-color: $medium-gray;
}

.background-primary {
	background: $primary-color;
}

.background-success {
	background: #aee460;
}

.background-warning {
	background: #f4cd4a;
}

.background-danger {
	background: #fc4660;
}

.progress-bar {
	display: block;
	background: $light-gray;
	height: 10px;
	border-radius: 499rem;
	margin-bottom: 20px;
	margin-top: -20px;
	.progress {
		display: block;
		height: 10px;
		border-radius: 499rem;
	}
}

/* Mobile */

@media (max-width: 640px) {
	.row, .row.grid-responsive {
		flex-direction: column;
	}
	
	.row.grid-responsive .column,
	.row.grid-responsive .column.column-10,
	.row.grid-responsive .column.column-20,
	.row.grid-responsive .column.column-25,
	.row.grid-responsive .column.column-33,
	.row.grid-responsive .column.column-40,
	.row.grid-responsive .column.column-50,
	.row.grid-responsive .column.column-60,
	.row.grid-responsive .column.column-66,
	.row.grid-responsive .column.column-67,
	.row.grid-responsive .column.column-75,
	.row.grid-responsive .column.column-80,
	.row.grid-responsive .column.column-90,
	.row.grid-responsive .column.column-100 {
		display: block;
		width: 100%;
		max-width: 100%;
	}
	
	.navbar {
		height: auto;
		position: static;
		.user-section {
			text-align: left;
		}
		
		.row .column,
		.row .column.column-10,
		.row .column.column-20,
		.row .column.column-25,
		.row .column.column-33,
		.row .column.column-40,
		.row .column.column-50,
		.row .column.column-60,
		.row .column.column-66,
		.row .column.column-67,
		.row .column.column-75,
		.row .column.column-80,
		.row .column.column-90,
		.row .column.column-100 {
			width: 100%;
			max-width: 100%;
			padding: 0 20px;
		}
		
		a.site-title {
			margin-left: 0;
		}
		
		.col-search {
			.search-btn {
				top: 12px;
			}
		}
		
		input[type=text] {
			margin: 0;
		}
	}
	
	#sidebar {
		position: static;
		width: 100%!important;
		padding: 10px 20px!important;
		margin: 0;
		height: auto;
		left: 0;
	}
	
	#main-content {
		width: 100%!important;
		display: block!important;
		margin: 0;
		padding: 1.5rem!important;
	}
	
	.card {
		.card-title, .card-block {
			padding: 10px 15px;
		}
	}
	
	.user-section {
		display: none;
	}
}


/* Tablet */

@media (min-width: 640px) and (max-width: 768px) {
	#sidebar {
		width: 30%!important;
	}
	
	#main-content {
		width: 70%!important;
		margin-left: 30%;
	}
	
	.navbar {
		.row .column,
		.row .column.column-10,
		.row .column.column-20,
		.row .column.column-25,
		.row .column.column-33,
		.row .column.column-40,
		.row .column.column-50,
		.row .column.column-60,
		.row .column.column-66,
		.row .column.column-67,
		.row .column.column-75,
		.row .column.column-80,
		.row .column.column-90,
		.row .column.column-100 {
			width: 50%;
			max-width: 50%;
		}
		
		.site-title {
			font-size: 18px!important;
			padding-top: 5px;
		}
	}
	
	.row.grid-responsive {
		flex-direction: column;
	}
	
	.row.grid-responsive .column,
	.row.grid-responsive .column.column-10,
	.row.grid-responsive .column.column-20,
	.row.grid-responsive .column.column-25,
	.row.grid-responsive .column.column-33,
	.row.grid-responsive .column.column-40,
	.row.grid-responsive .column.column-50,
	.row.grid-responsive .column.column-60,
	.row.grid-responsive .column.column-66,
	.row.grid-responsive .column.column-67,
	.row.grid-responsive .column.column-75,
	.row.grid-responsive .column.column-80,
	.row.grid-responsive .column.column-90,
	.row.grid-responsive .column.column-100 {
		display: block;
		width: 100%;
		max-width: 100%;
	}
	
	.card {
		.canvas-wrapper {
			width: 90%;
		}
	}
	
	.user-section {
		margin-right: 20px;
		.username {
			display: none;
		}
	}
}

@media (min-width: 768px) and (max-width: 960px) {
	.row.grid-responsive {
		flex-direction: column;
	}
	
	.row.grid-responsive .column,
	.row.grid-responsive .column.column-10,
	.row.grid-responsive .column.column-20,
	.row.grid-responsive .column.column-25,
	.row.grid-responsive .column.column-33,
	.row.grid-responsive .column.column-40,
	.row.grid-responsive .column.column-50,
	.row.grid-responsive .column.column-60,
	.row.grid-responsive .column.column-66,
	.row.grid-responsive .column.column-67,
	.row.grid-responsive .column.column-75,
	.row.grid-responsive .column.column-80,
	.row.grid-responsive .column.column-90,
	.row.grid-responsive .column.column-100 {
		display: block;
		width: 100%;
		max-width: 100%;
	}
	
	#sidebar {
		width: 30%!important;
	}
	
	#main-content {
		width: 70%!important;
		margin-left: 30%;
	}
	
	.card {
		.canvas-wrapper {
			width: 95%;
		}
	}
	
	.user-section {
		margin-right: 20px;
		.username {
			display: none;
		}
	}
}
